Skip to content

docs(start): add example of how to handle errors using middlewares #4904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

RegiByte
Copy link

@RegiByte RegiByte commented Aug 9, 2025

Added a brief example of how to handle errors using a middleware, by throwing a response it will be handled by the handleServerAction at packages/start-server-core/src/server-functions-handler.ts

This information about throwing a response was not found elsewhere in the docs, but it is particularly valuable for people using server functions.

@github-actions github-actions bot added the documentation Everything documentation related label Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Everything documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant